package com.balloon.logic;

import java.util.ArrayList;
/**
 *
 * @author all
 * class to store the information of the country
 */
public class Country implements IBalloon{
    private String countryName;
    private int countryRank;
    private String countryLink;
    private StringBuffer countryComments;
    private double locationX;
    private double locationY;
    private String countryDescription;
    private ArrayList<String> countryUsefulLinks=new ArrayList<String>();
    private ArrayList<City> cities=new ArrayList<City>();
/**
 *
 * @param name
 */
    public Country(String name){
        this.countryName=name;
    }
/**
 * method to get the cities from country
 * @return city
 */
    public ArrayList<City> getCities(){
        return cities;
    }
/**
 * method to add city to the country
 * @return
 */
    public void addCity(City city){
        cities.add(city);
    }
/**
 * method to get the cities from country
 * @return countryRank
 */
    public int getRank() {
        return countryRank;
    }

    /**
 * method to get the link from country
 * @return countryLink
 */
    public String getLink() {
        return countryLink;
    }

       /**
 * method to get parameter x of the location
 * @return locationX
 */
    public double getLocationX() {
        return locationX;
    }

       /**
 * method to get parameter y of the location
 * @return locationY
 */
    public double getLocationY() {
        return locationY;
    }

       /**
 * method to get the name of country
 * @return countryName
 */
    public String getName() {
        return this.countryName;
    }

       /**
 * method to get the description from country
 * @return countryDescription
 */
    public String getDescription() {
        return this.countryDescription;
    }

       /**
 * method to set the rank of country
 * @return
 */
    public void setRank(int countryRank) {
        this.countryRank=countryRank;
    }

       /**
 * method to add comments to the country
 * @return
 */
    public void addComments(String comment) {
        this.countryComments.append(comment);
    }

       /**
 * method to set the link
 * @return
 */
    public void setLink(String link) {
        this.countryLink=link;
    }

       /**
 * method to set the parameter x of the location
 * @return
 */
    public void setLocationX(double locationX) {
        this.locationX=locationX;
    }

       /**
 * method to set the parameter y of the location
 * @return
 */
    public void setLocationY(double locationY) {
        this.locationY=locationY;
    }

       /**
 * method to set the name of country
 * @return
 */
    public void setName(String name) {
        this.countryName=name;
    }

       /**
 * method to set description of the country
 * @return
 */
    public void setDescription(String descripton) {
        this.countryDescription=descripton;
    }

       /**
 * method to get comments of of the country
 * @return countryComments
 */
    public StringBuffer getComments() {
        return countryComments;
    }

       /**
 * method to get the link from country
 * @return countryUsefulLinks
 */
    public ArrayList<String> getCountryUsefulLinks() {
        return countryUsefulLinks;
    }

       /**
 * method to set the link of country
 * @return
 */
    public void setCountryUsefulLinks(String website,String description) {
        countryUsefulLinks.add(website);
        countryUsefulLinks.add(description);
    }


    
}
